home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_0799 / 480 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  2.2 KB

  1. From: Stephen Usher <Stephen.Usher@earth.ox.ac.uk>
  2. Subject: Re: mint-aware HD driver
  3. Date: Fri, 10 Sep 1993 14:36:00 +0100 (BST)
  4. In-Reply-To: <9309101315.AA11678@math.uni-muenster.de> from "Ulrich Kuehn" at Sep 10, 93 03:15:41 pm
  5. Mime-Version: 1.0
  6.  
  7. >Hello,
  8. >
  9. >I was thinking about the problems with interrupt driven HD drivers,
  10. >that cause mint not to block while doing disk access.
  11. >One problem is that we would need a kind of semaphore for the dma hardware
  12. >as it has to be locked against duplicate accesses at the same time.
  13.  
  14. All you need is the driver in two parts, the lower part being an interrupt
  15. based hardware driver (one for each I/O bus device, ie floppy, ACSI and
  16. SCSI) which picks up requests (which included a pointer to a buffer) from a
  17. queue and passes back "done" messages. The upper determines the device,
  18. places a request on the queue, puts the process on the I/O pending queue and
  19. returns. At each context switch interrupt the status of the pending I/O
  20. buffers is checked to see if any are ready. Any buffers which are ready are
  21. copied into the process' address space (if necessary) and the process is put
  22. on the end of the run queue.
  23.  
  24. How's that?
  25.  
  26. >As we have already one variable to do this, namely _flock, one could
  27. >use this in all kind of software that accesses the dma hardware; or is
  28. >it better to introduce a new semaphore, maybe separate ones for acsi and
  29. >scsi? But then all existing software for HD would have to be changed to use
  30. >it correctly.
  31.  
  32. Methinks this will have to be done anyway, the current ones busy idle as far
  33. as I can tell.
  34.  
  35. >What do you think about it?
  36. >
  37. >Regards,
  38. >Ulrich
  39. >
  40. >+---------------+----------------------------+-------------------------+
  41. >| Ulrich Kuehn  | Internet:                  | Do they know that they  |
  42. >| Cand.Math.Inf | kuhnu@math.uni-muenster.de | cannot eat their money? |
  43. >+---------------+----------------------------+-------------------------+
  44.  
  45. Steve
  46.  
  47. -- 
  48. ---------------------------------------------------------------------------
  49. Computer Systems Administrator, Dept. of Earth Sciences, Oxford University.
  50. E-Mail: steve@uk.ac.ox.earth (JANET) steve@earth.ox.ac.uk (Internet).
  51. Tel:- Oxford (0865) 282110 (UK) or +44 865 282110 (International).
  52.